/* 控编api */
import { ajaxService } from '@/utils/request';
interface quantityControls {
  upperLimit: number;
  earlyWarning: number;
  typeNum: number;
  status: number;
}
const env = import.meta.env;
// const baseURL = env.VITE_API_BASE_URL;
const baseURL = env.VITE_DEV_BASE_URL;
// const baseURL = 'http://192.168.31.129:39001';

// 查询控制维度数据
export function getManagementControl() {
  return ajaxService({
    url: '/hr/organization/basic_setting/control_compilation_management/control_coding_dimension/establishment/info',
    method: 'get',
    noToken: false,
    baseURL
  });
}

// 修改控制维度数据
export function setManagementControl(data: any) {
  return ajaxService({
    url: '/hr/organization/basic_setting/control_compilation_management/control_coding_dimension/establishment/update',
    method: 'post',
    noToken: false,
    data,
    baseURL
  });
}
